<html><head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>ExtractJSONMap</title></head>
<body bgcolor="#FFFFDF" link="#009999" vlink="#006666" alink="#006666">
<font face="Arial" size="2"><p align="center"><b><font size="4">ExtractJSONMap()</font></b></p>
<p><b>Syntax</b></p><blockquote>
<font color="#006666"><b>ExtractJSONMap</b></font>(JSONValue, Map())</blockquote>

</blockquote>
<b>Description</b><br><blockquote>



Extract members from the given JSON value of <a href="jsontype.html">type</a> <font color="#924B72">#PB_JSON_Object</font> into 
the specified Map(). The map will be resized to the number of elements contained 
in the JSON value. 

 

</blockquote><p><b>Parameters</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>JSONValue</i></td>
<td width="90%"> 
 
The JSON value. The value must be of type <font color="#924B72">#PB_JSON_Object</font>. 

 

</td></tr>
<tr><td><i>Map()</i></td>
<td> 
 
The map to fill with the JSON elements. The map will be resized to have the same size 
as the JSON value. Any previous content of the map will be lost. 

 

</td></tr>
</table>
</blockquote><p><b>Return value</b></p><blockquote>

None.





</blockquote><p><b>Remarks</b></p><blockquote>



The extraction is performed recursively if the map has a structure type. 
If the JSON value contains any members that do not have the proper type to match 
the Map(), they will be ignored and the corresponsing map element will be 
left empty. 

 

</blockquote><p><b>Example</b></p><blockquote>

<pre><font face="Courier New, Courier, mono"size="2">  Input$ = "{" +<font color="#006666"> Chr</font>(34) + "enabled" +<font color="#006666"> Chr</font>(34) + ": 1, " + 
<font color="#006666">                 Chr</font>(34) + "displayed" +<font color="#006666"> Chr</font>(34) + ": 1, " + 
<font color="#006666">                 Chr</font>(34) + "visible" +<font color="#006666"> Chr</font>(34) + ": 0 }"        
<font color="#006666">  ParseJSON</font>(0, Input$)
  
  <b><font color="#006666">NewMap</font></b> <font color="#006666">Options</font>()
<font color="#006666">  ExtractJSONMap</font>(<font color="#006666">JSONValue</font>(0),<font color="#006666"> Options</font>())       
  
  <b><font color="#006666">Debug</font></b> <font color="#006666">Options</font>("enabled")
  <b><font color="#006666">Debug</font></b> <font color="#006666">Options</font>("visible")
</font></pre>

</blockquote><p><b>See Also</b></p><blockquote>

<a href="extractjsonarray.html">ExtractJSONArray()</a>, <a href="extractjsonlist.html">ExtractJSONList()</a>, <a href="extractjsonstructure.html">ExtractJSONStructure()</a>, 
<a href="insertjsonarray.html">InsertJSONArray()</a>, <a href="insertjsonlist.html">InsertJSONList()</a>, <a href="insertjsonmap.html">InsertJSONMap()</a>, <a href="insertjsonstructure.html">InsertJSONStructure()</a>, 
<a href="setjsonobject.html">SetJSONObject()</a>, <a href="jsontype.html">JSONType()</a> 

</Blockquote><p><b>Supported OS  </b><Blockquote>All</Blockquote></p><center>&lt;- <a href=extractjsonlist.html>ExtractJSONList()</a> - <a href=index.html>Json Index</a> - <a href=extractjsonstructure.html>ExtractJSONStructure()</a> -&gt;



</body></html>